package source.s02.twoObjectTwoLock.test;


import source.s02.twoObjectTwoLock.extthread.ThreadA;
import source.s02.twoObjectTwoLock.extthread.ThreadB;
import source.s02.twoObjectTwoLock.service.HasSelfPrivateNum;

public class Run {

	public static void main(String[] args) {
		//2个对象2个锁,不是代码锁，顺序不一定
		HasSelfPrivateNum numRef1 = new HasSelfPrivateNum();
		HasSelfPrivateNum numRef2 = new HasSelfPrivateNum();

		ThreadA athread = new ThreadA(numRef1);
		athread.start();

		ThreadB bthread = new ThreadB(numRef2);
		bthread.start();

	}

}
